package com.project.mapper;

import com.project.bean.ShoppingCarBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author(王思翰)
 * @Description(类的描述)
 * @Date(创建时间) 2021/8/1 16:49
 */
public interface IOriderDetailsMapper {

    public void addAll(@Param("list") List<ShoppingCarBean> list, @Param("orderId") int orderId);

    /**
     * 根据订单编号，统计订单总金额
     * @param orderId 订单id
     * @return 订单总金额
     */
    public int sumMoney(int orderId);
}
